<template>
<div class="main-box">
          <el-card :body-style="{ padding: '1.6rem',}"  shadow="never" >
         <div class="card-box">
              <div class="card-header">
                  <div class="card-title-label"><span>{{data.activityType}}</span></div>
                  <span class="card-title">{{data.activityName}}</span>
              </div>
              <div class="site-text">
                 申请片区：{{data.region}}
              </div>
                <div class="site-text">
                活动单号：{{data.activityNumber}}
              </div>
              <div class="site-text">
                 申请人：{{data.applicant}}
              </div>
                            <div class="site-text">
                所属场景部：{{data.sceneDepartment}}
              </div>
                            <div class="site-text">
             工具包名称：{{data.toolkitName}}
              </div>
                            <div class="site-text">
               活动时间：{{data.activityTime}}
              </div>
              <div class="btn">
                    <span>活动详情</span>
              </div>
         </div>
      </el-card>
                     	<view class="activity-text-box ">
								<view class="activity-text">
									<view class="activity-text-text">
										<span>{{data.activityStatus}}</span>
									</view>
								</view>
					</view>
</div>

</template>

<script>
export default {
    props:{
     data:{
       tyoe:Object,
       default:()=>{}
     }
  },
    mounted(){
        // location.reload();
    }
}
</script>

<style lang="scss" scoped>
.main-box{
    position: relative;
}
.card-box{
    width: 100%;
    min-height: 26rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: space-between;
    flex-direction: column;
}
.card-header{
    width: 100%;
    display: flex;
    align-items: center;
}
.card-title{
    font-size: 1.3rem;
font-weight: 400;
color:var(--el-color-text-3);
}
.card-title-label{
    padding: 0.2rem 1rem;
    height: 2.3rem;
    display: flex;
    align-items: center;
    margin-right: 0.8rem;
    background: rgba(255,167,78,0.1);
    border-radius: 0.3rem 0.3rem 0.3rem 0.3rem;
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--el-color-primary)
}
// .card-title-label span{
//   display:block;
  
// }
.site-text{
    margin-top: 1.6rem;
    font-size: 1.2rem;
    font-family: Source Han Sans SC-Regular, Source Han Sans SC;
    font-weight: 400;
    color:var(--el-color-text-6);
}
.btn{
    width: 9rem;
    height: 3rem;
        margin-top: 1.6rem;
        display: flex;
        align-items: center;
        justify-content: center;
border-radius: 2.75rem 2.75rem 2.75rem 2.75rem;
border: 1px solid var(--el-color-primary);
font-size: 1.4rem;
font-family: Source Han Sans SC-Regular, Source Han Sans SC;
font-weight: 400;
color: var(--el-color-primary);
}
.btn:active {
    background: var(--el-color-primary);
    color: var(--el-color-primary-light-9);
}




  		.activity-text-box{
  			width: 13rem;
  			height: 13rem;
  			position: absolute;
  			top: 0;
  			right: 0;
  			font-size: 1.3rem;
  			font-family: PingFang SC, PingFang SC-Regular;
  			font-weight: 400;
  			// background-color: #FF8000;
  			color: #ffffff;
  			display: flex;
  			justify-content: center;
  			align-items: center;
  			 overflow:hidden;

  		}  			.activity-text{
  
  				transform: rotateZ(45deg);
                  position: relative;

  			}

  				.activity-text-text{
                      position: absolute;
  					top: -7rem;
  					left: -7rem;
  					text-align: center;
                      display: flex;
                      justify-content: center;
                      align-items: center;
  					width: 14rem;
                    height: 2rem;
  					background-color: #73D4B4;
  				}






</style>